import axios from 'axios';

import paths from '@/constants/paths';
import interceptors from './interceptors';

const instance = axios.create({
  baseURL: paths.BASE_URL,
  timeout: 120 * 1000,
});

interceptors.init(instance);

export default instance;
